package com.xugou.utils;

import com.xugou.pojo.Cost;

/**
 * @author xugou
 * @date 2022/6/16  16:14
 */
public class GetOrderCost {

    //生成订单费用
    public static Cost getOrderCostInfo(){

        Cost cost = new Cost();
        double random = Math.random();

        cost.setCarryMoney((float) (100+random));
        cost.setStorageMoney((float) (50+random));
        cost.setTransportMoney((float) (200+random));
        return cost;
    }
}
